package net.qiqbframework.domains.event.domain.types;

import net.qiqbframework.modelling.domain.EntityIdentifier;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
public class InstanceSubscription implements Serializable {


    @EntityIdentifier
    protected String id;

    /**
     * 处理的服务名称
     */
    @Setter
    protected String applicationName;

    @Setter
    protected String instanceName;

    /**
     * 处理监听个数
     */
    @Setter
    protected Integer processListenerQty;

    public InstanceSubscription(String id, String applicationName, String instanceName) {
        this.id = id;
        this.applicationName = applicationName;
        this.instanceName = instanceName;
    }


}
